package com.ist.smartvehicle;

import android.location.Location;

public class DrivingSystem {

	private Engine engine;
	private int currentAltitude;
	private Location destination;
	private Location current;
	
	void setDestination(Location location){
		this.destination = location;
	}
	
	public long getBatteryLevel(){
		return engine.batteryLevel;
	}
	
	public void setAltitude(int altitude){
		if(currentAltitude < altitude) {
			try {
				engine.climb(altitude-currentAltitude);
			} catch (EngineException e) {
				e.printStackTrace();
			}
		}
		currentAltitude = altitude;
	}
	
}
